package com.gitee.wsl.jvm.okhttp.exception

import okio.IOException

/**
 * An exception indicating that an unsuccessful status code was returned in the HTTP response.
 *
 * @property code the HTTP status code.
 */
class ResponseStatusException(val code: Int, message: String) : IOException(message) {
    constructor(code: Int) : this(code, "HTTP status code: $code")
}